package com.hsp.demo_10.myabstract.costtime;

public class TimeApp {
    public static void main(String[] args) {
        AA aa = new AA();
        long aaTime = aa.costTime();
        System.out.println("AA耗费的时间为：" + aaTime);

        BB bb = new BB();
        long bbTime = bb.costTime();
        System.out.println("BB耗费的时间为：" + bbTime);
    }
}
